<?php $this->load->view('admin/public/head.html', array('css' => array(
'/assets/admin/css/admin/common.css'
))); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" ng-controller="admin-bbs-publish-controller">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            社区管理
            <small>前台用户发帖管理</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 后台首页</a></li>
            <li class="active"><a href="/bbs/lists/index">帖子列表</a></li>
            <li class="active">发布主题</li>
        </ol>
    </section>

    <section class="content bbs-publish">
        <div class="row">
            <div class="col-md-12">
                <!-- Horizontal Form -->
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">发布主题</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">主题内容</label>
                                <div class="col-sm-9">
                                    <textarea class="form-control" ng-model="content" rows="3" placeholder="请填写主题内容"></textarea>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">选择图片</label>
                                <div class="col-sm-9">
                                    <div class="bbs-img-lists" ng-repeat="a in attachment">
                                        <img ng-src="{{ a.thumb }}" alt="">
                                    </div>
                                    <a href="javascript:void(0);" class="bbs-add-btn" id="thumbBtn">&nbsp;&nbsp;</a>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="digg" class="col-sm-2 control-label">点赞数</label>

                                <div class="col-sm-2">
                                    <input type="number" ng-model="likes" class="form-control" id="digg" placeholder="点赞数量">
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-default" ng-click="upload()">返回列表</button>
                            <button type="submit" class="btn btn-info pull-right" style="background: #00a65a; border: none;" ng-click="submit()">立即发布</button>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
                <!-- /.box -->
            </div>
        </div>
    </section>

</div>
<!-- /.content-wrapper -->
<?php $this->load->view('admin/public/foot.html', array(
    'js' => array(
        'http://cdn.staticfile.org/webuploader/0.1.0/webuploader.withoutimage.min.js',
        '/assets/admin/js/bbs/publish.js'
))); ?>
